package com.seata.demo.mapper;

import java.math.BigDecimal;
import org.apache.ibatis.annotations.Param;
import com.seata.demo.mapper.base.MyBatisBaseDao;
import com.seata.demo.model.AccountTbl;

/**
 * AccountTblMapper继承基类
 */
public interface AccountTblMapper extends MyBatisBaseDao<AccountTbl, Integer> {
    
    AccountTbl selectByUserId(String userId);

    int deductBalance(@Param("userId") String userId, @Param("deductMoney") BigDecimal deductMoney);

}